#ifndef NETWORKLOGINEDRESPONSE_H
#define NETWORKLOGINEDRESPONSE_H

#include "networkresponse.h"
namespace network {

class LoginedResponse : public Response
{
    Q_OBJECT
public:
    LoginedResponse(int userId,
                    const QString userName,
                    const QString displayName,
                    const QString avatar,
                    const QString sessionKey,
                    QObject *parent = 0);

    inline int userId() const {
        return m_userId;
    }

    inline const QString userName() const {
        return m_userName;
    }

    inline const QString displayName() const {
        return m_displayName;
    }

    inline const QString avatar() const {
        return m_avatar;
    }

    inline const QString sessionKey() const {
        return m_sessionKey;
    }

public:
    Response::Type type() const;
    QVariant data() const;
private:
    int m_userId;
    QString m_userName;
    QString m_displayName;
    QString m_avatar;
    QString m_sessionKey;
};

}
#endif // NETWORKLOGINEDRESPONSE_H
